// OverDrive.h: interface for the COverDrive class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_OVERDRIVE_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_)
#define AFX_OVERDRIVE_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "xD3D.h"
#include "xTexture.h"
#include "D3DSprite.h"
#include "D3DPlane.h"
#include "GMap.h"

class CTank;

class CODLetter
{
public:
	BOOL bShow;
	BOOL bRed;

	int SprNum;

	int FrameCnt;
	float Xp, Yp;
	float XScale, YScale;
	float Alpha;

	CODLetter()
	{
		Reset();
	};

	void Reset()
	{
		bShow = FALSE;
		bRed = FALSE;

		SprNum = 0;

		FrameCnt = 0;
		Xp = Yp = 0;
		XScale = YScale = 10.0f;
		Alpha = 0.0f;
	};

	void Process();
	void Draw();
};

///////////////////////////////////

class COverDrive  
{
public:

	CTank *pTank;
	CODLetter ODLetter[9];

	BOOL bNowDraw;
	int FrameCnt;

	COverDrive();
	virtual ~COverDrive();

	BOOL Init(CTank *ptank);
	void Reset();

	void Process();
	void Draw();

};

#endif // !defined(AFX_OVERDRIVE_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_)
